/*
 * File:   KeyCommand.h
 * Author: Elevator
 *
 * Created on 18 Май 2013 г., 0:23
 */

#ifndef KEYCOMMAND_H
#define KEYCOMMAND_H

#include "CommandType.h"

class Command
{
public:

	Command( CommandType type, int key );
	Command( const Command& orig );

	const int& GetKey( ) const;
	const CommandType& GetType( ) const;

private:
	int _key;
	CommandType _type;
};

inline bool operator ==(const Command& a, const Command& b )
{
	return a.GetType( ) == b.GetType( ) && a.GetKey( ) == b.GetKey( );
}

#endif	/* KEYCOMMAND_H */
